package ace.cmp.rest.spring.data.jdbc.querydsl.test.sdk.feign.impl;

import ace.cmp.openfeign.security.oauth2.core.config.FeignInternalServerOauth2SecurityConfig;
import ace.cmp.rest.spring.data.jdbc.querydsl.test.sdk.feign.BookFeignApi;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * @author caspar
 * @date 2024/1/25 14:30
 */
@FeignClient(
    value = "${ace.cloud.openfeign.client.rest-spring-data-jdbc-querydsl.bookFeign.name:bookFeign}",
    contextId =
        "${ace.cloud.openfeign.client.rest-spring-data-jdbc-querydsl.bookFeign.contextId:bookFeign}",
    path = BookFeign.PATH,
    configuration = FeignInternalServerOauth2SecurityConfig.class
)
public interface BookFeign extends BookFeignApi {

  String PATH = "${ace.cloud.openfeign.client.rest-spring-data-jdbc-querydsl.bookFeign.path:/rpc/oauth2/book}";
}
